<?php defined('BASEPATH') OR exit('No direct script access allowed');

/** 
 * @package     Page Module
 * @author      Subha
 * @copyright   (c) 2014, 300 Development
 * @since       Version 0.1
 * @company     Matrix Infoline
 */

class Widget_model extends CI_Model
{

    
	function recent_listing($limit=5){
		$sql = "select * from post order by (id) DESC limit 0,$limit";
		$result = $this->db->query($sql)->result();
		if($result) return $result;
	}
	
}